﻿@model IEnumerable<bdxyit.com.RecruitmentAppSys.Models.FamilyInfo>
@{
    ViewBag.Title = "家庭成员详情";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    详细信息</h2>
<div id="NavMessage">
    <ul>
        <li >@Html.ActionLink("个人信息", "Index", "EducationInfo", new { @style = "color: Red;" })</li>
        <li>@Html.ActionLink("教育信息", "Index", "EducationInfo")</li>
        <li>@Html.ActionLink("工作履历", "Index", "EducationInfo")</li>
        <li>@Html.ActionLink("应聘岗位", "Index", "EducationInfo")</li>
        <li>@Html.ActionLink("上传照片", "Index", "EducationInfo")</li>
    </ul>
</div>
<div id="BasicMessage">
    <fieldset>
        <legend>家庭成员</legend>
        <table width="600px">
            <tr>
                <th>操作
                </th>
                <th>
                    姓名
                </th>
                <th>
                    关系
                </th>
                <th>
                    工作
                </th>
                <th>
                    职务
                </th>
                <th>
                    地址
                </th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.ActionLink("删除", "Delete", new { id = item.ID })
                    </td>
                    <td>
                        @item.FamilyName
                    </td>
                    <td>
                      @{
                         foreach(var it in ViewBag.relationships)
                          {
                              if(it.SysID ==  item.Relationship)
                              {
                                  @it.SysItem
                              }
                          }
                      }
                    </td>
                    <td>
                        @item.Job
                    </td>
                    <td>
                        @item.SectorPosts
                    </td>
                    <td>
                        @item.Address
                    </td>
                </tr>
            }
        </table>
        <p>
    @Html.ActionLink("添加家庭成员", "Create", "FamilyInfo", new { id = ViewBag.Users }, new { id = "Inserts" })
</p>
<p>
     @Html.ActionLink("下一步", "Create", "EducationInfo", new { id = ViewBag.Users }, new { id = "Next" })
</p>
    </fieldset>
</div>
